package kau.vo;

public class Board {
	private int bNumber;
	private int courseId;
	private String title;
	private int accessPermission;
	private int writingPermission;
	
	public Board() {}

	public Board(int bNumber, int courseId, String title, int accessPermission,
			int writingPermission) {
		super();
		this.bNumber = bNumber;
		this.courseId = courseId;
		this.title = title;
		this.accessPermission = accessPermission;
		this.writingPermission = writingPermission;
	}

	public int getbNumber() {
		return bNumber;
	}

	public void setbNumber(int bNumber) {
		this.bNumber = bNumber;
	}

	public int getCourseId() {
		return courseId;
	}

	public void setCourseId(int courseId) {
		this.courseId = courseId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getAccessPermission() {
		return accessPermission;
	}

	public void setAccessPermission(int accessPermission) {
		this.accessPermission = accessPermission;
	}

	public int getWritingPermission() {
		return writingPermission;
	}

	public void setWritingPermission(int writingPermission) {
		this.writingPermission = writingPermission;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + bNumber;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Board other = (Board) obj;
		if (bNumber != other.bNumber)
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "Board [bNumber=" + bNumber + ", courseId=" + courseId
				+ ", title=" + title + ", accessPermission=" + accessPermission
				+ ", writingPermission=" + writingPermission + "]";
	}
	
}
